package com.study.design.model.behaviorPattern.mediator;

import org.junit.Test;

/**
* @Name: Client
* @Description: 中介者模式测试类
* @Author: 李超	lc_jack@foxmail.com
* @CreateDate: 2017-2-15 下午4:50:09 
* @Version: V1.0
 */
public class Client {
	
	@Test
	public void mediator() {
		//创建中介者对象
		Mediator mediator = new President() ;
		//创建同事对下岗，并关联中介者对象
		Macket macket = new Macket(mediator) ;
		Development development = new Development(mediator) ;
		Finacial finacial = new Finacial(mediator) ;
		//市场部行为
		macket.selfAction() ;
		macket.outAction() ;
		
	}

}
